package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface LawService {

	public Law saveLaw(Law law);

	public Set<Law> loadLaws();

	public Set<Law> loadReferenceLaws(Set<Law> laws);

	public Set<Law> loadLawsByIdSet(Set<Integer> lawsId);

	public Map<String, ?> loadLawObjectReferencedSet(Law law);

	public Map<String, ?> loadLawClassReferencedSet(Law law);

	public void deleteLaw(Law law);

	public void deleteLaws(Set<Integer> deleteLawsId);

	public List<Law> findAllLaws(Integer startResult, Integer maxRows);

	public Law findLawByPrimaryKey(Integer id);

	public Integer countLaws();

	public Integer countLaws(CmiPagination page);

	public Integer countLawsByName(String queryName);

	public Integer countLawsByDetachedCriteria(CmiPagination page);

}
